#!/usr/bin/env python3
import pathlib,os,sys
if __name__=="__main__":
	path=pathlib.Path(".")
	g=path.rglob("pom.xml")
	for p in g:
		result=os.system(f"/bin/bash -c \" cd {str(p.parent.absolute())}; mvn package;\"")
		if(result!=0):
			print(f"{str(p.parent.absolute())} failed")
			sys.exit(1)
